import {defineStore} from "pinia"
import {ref} from "vue"
import {Server} from "../../types/server-type";

export const useServerStore = defineStore('serverStore', () => {
  // 当前操作的服务器
  const current = ref<Server>({
    name: '服务器名称',
    host: '服务器主机',
    port: 22,
    username: '用户名',
    password: '密码',
  })

  return {
    current,
  }
})

const serverStore = useServerStore()

export default serverStore
